package com.scm.biz.service;

import java.text.ParseException;
import java.util.List;

import com.scm.biz.bean.DesignOrder;
import com.scm.biz.bean.Order;
import com.scm.biz.query.DesignOrderQuery;
import com.scm.biz.result.DesignOrderResult;
import com.scm.core.bean.exp.UfdmException;

/**
 * 设计订单业务层接口
 * @author 张乐锋
 *
 */
public interface DesignOrderService {
	
	/**
	 * 创建设计订单
	 * @param designOrderDto
	 * @throws ParseException 
	 */
	public void addDesignOrder(DesignOrder designOrder,Order order);
	public DesignOrder selectByPrimaryKey(Long id);
	public DesignOrder selectByOrderId(Long orderId);
	public List<DesignOrderResult> selectPage(DesignOrderQuery designOrderQuery);
	public void saveAssignUser(List<Long> businessIds,Integer assignUser)throws UfdmException ;
	public void saveSubmitVerify(Long businessId,Long orderId);
	public void saveVerify(Long businessId,Long orderId);
	public void saveClose(Long businessId,Long orderId);
	/**
	 * 根据订单ID，查询订单详情
	 * @param id
	 * @return
	 */
	DesignOrderResult selectById(Long id);
	
	/**
     * 设计订单总数
     * @param designOrderQuery
     * @return
     */
    public int selectTotal(DesignOrderQuery designOrderQuery);
}
